// vite.config.ts
import { defineConfig } from "file:///D:/codeBase1/shouyang-fe/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/codeBase1/shouyang-fe/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import eslintPlugin from "file:///D:/codeBase1/shouyang-fe/node_modules/vite-plugin-eslint/dist/index.mjs";
import { createHtmlPlugin } from "file:///D:/codeBase1/shouyang-fe/node_modules/vite-plugin-html/dist/index.mjs";
import vueSetupExtend from "file:///D:/codeBase1/shouyang-fe/node_modules/vite-plugin-vue-setup-extend/dist/index.mjs";
import { resolve } from "path";
import autoprefixer from "file:///D:/codeBase1/shouyang-fe/node_modules/autoprefixer/lib/autoprefixer.js";
var __vite_injected_original_dirname = "D:\\codeBase1\\shouyang-fe";
var name = "\u6807\u51C6\u6A21\u677F";
var vite_config_default = defineConfig({
  server: {
    host: "0.0.0.0",
    proxy: {
      "^/api1": {
        // target: 'http://192.168.8.181:21030',
        target: "http://192.168.8.181:54322",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api1/, "")
      },
      "^/api2": {
        target: "http://192.168.8.181:5000",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api2/, "")
      },
      "^/jjy": {
        target: "http://192.168.1.101:5100",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/jjy/, "")
      },
      "^/mqtt": {
        // target: 'http://192.168.1.101:8083/mqtt',
        target: "http://192.168.1.101:1888/mqtt",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/mqtt/, "")
      }
    }
  },
  css: {
    postcss: {
      plugins: [autoprefixer({})]
    }
    // preprocessorOptions: {
    //   scss: {
    //     additionalData: `@import "@/styles/theme.scss";`
    //   }
    // }
  },
  plugins: [
    vue(),
    vueSetupExtend(),
    eslintPlugin({
      include: ["src/**/*.js", "src/**/*.vue", "src/*.js", "src/*.vue"]
    }),
    createHtmlPlugin({
      inject: {
        data: {
          title: name
        }
      }
    })
  ],
  build: {
    chunkSizeWarningLimit: 8e3,
    target: "es2015",
    minify: "terser",
    terserOptions: {
      compress: {
        drop_console: false,
        drop_debugger: true
      }
    },
    rollupOptions: {
      output: {
        manualChunks: {
          vue: ["vue"]
        }
      }
    }
  },
  resolve: {
    alias: {
      "@": resolve(__vite_injected_original_dirname, "src")
      // 路径别名
    },
    extensions: [".js", ".json", ".ts"]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxjb2RlQmFzZTFcXFxcc2hvdXlhbmctZmVcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXGNvZGVCYXNlMVxcXFxzaG91eWFuZy1mZVxcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRDovY29kZUJhc2UxL3Nob3V5YW5nLWZlL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12dWUnXHJcbmltcG9ydCBlc2xpbnRQbHVnaW4gZnJvbSAndml0ZS1wbHVnaW4tZXNsaW50J1xyXG5pbXBvcnQgeyBjcmVhdGVIdG1sUGx1Z2luIH0gZnJvbSAndml0ZS1wbHVnaW4taHRtbCdcclxuaW1wb3J0IHZ1ZVNldHVwRXh0ZW5kIGZyb20gJ3ZpdGUtcGx1Z2luLXZ1ZS1zZXR1cC1leHRlbmQnICAvL1x1NEZCRlx1NEU4RVx1NEY3Rlx1NzUyOFx1N0VDNFx1NEVGNlx1NTQwRFxyXG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